﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Anuntiomatic.AnunWebServices;

namespace Anuntiomatic
{
    public partial class FrmBase : Form
    {
        protected string encryptKey;//Key mã hóa
        protected string iv;//Vector mã hóa
        protected AnuntiomaticServer webservice;

        public FrmBase()
        {
            InitializeComponent();
            this.Load += new EventHandler(FrmBase_Load);
        }

        void FrmBase_Load(object sender, EventArgs e)
        {
            encryptKey = "Rg2KaU14ddzlRu7VwTXQO30rJnGzAIKMglJKv0XqHAw=";//Key mã hóa
            iv = "2Giw+DND7CYd6l4qZJHg/A==";//Vector mã hóa
            webservice = new AnuntiomaticServer("REWekiH7wS59gO4S8pGx08fX5Gju1nyxt4QTC7D/Q1LjpyluMDtTlpAnjaIxJhEFQXPFBF1BqrDPo3LqqdFCoQ==".AESDecryptString(encryptKey, iv));
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmBase));
            this.SuspendLayout();
            // 
            // FrmBase
            // 
            this.ClientSize = new System.Drawing.Size(284, 261);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "FrmBase";
            this.ResumeLayout(false);

        }
    }
}
